home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 68.7z / BS1 part 68 / Scala Infochannel IC402 v4.03 (1993)(Scala AS)(Disk 1 of 3)(NTSC)[HD][cr SR].7z / Scala Infochannel IC402 v4.03 (1993)(Scala AS)(Disk 1 of 3)(NTSC)[HD][cr SR].adf / Install < prev    next >
Text File  |  1993-02-26  |  21KB  |  815 lines

  1. ; $VER: Scala Install Program Version 2.1 (15Feb93)
  2.  
  3. ;----------------------------- Text Strings -------------------------------
  4.  
  5. (set msg_Utils        "Scala Utilities")
  6. (set msg_Palettes     "Scala Palettes")
  7. (set msg_Symbols    "Scala Symbols")
  8. (set msg_ARexx         "Scala Arexx Example")
  9. (set msg_EX        "Scala EX")
  10. (set msg_Fonts        "Scala Fonts")
  11. (set msg_Back         "Scala Backgrounds")
  12. (set msg_Demos        "Scala Demo Scripts")
  13. (set msg_Resize        "Resize Scala Backgrounds")
  14. (set msg_ScalaFont    "Scala.font")
  15. (set msg_NoSelect    "You did not select anything. Please try again.")
  16. (set msg_NoDrawer    ("You must select a drawer to install %s. Please make a new drawer, or select an existing drawer." @app-name))
  17. (set msg_ChooseWhat    ("Please select which parts of %s you would like to install:" @app-name))
  18. (set msg_ChooseDest    ("Please select where you want %s to be installed:" @app-name))
  19. (set msg_Overscan1    "You may resize the Scala Backgrounds to overscan. Please note that selecting %s or %s takes more space on your harddisk, and may reduce the performance of the Scala Wipes.\n\n")
  20. (set msg_Overscan2    "You have selected to resize the Scala Backgrounds to overscan. Please note that this takes more space on your harddisk, and may reduce the performance of the Scala Wipes.\n\n")
  21. (set msg_ChooseSize    "Please select which size you want the Scala Background pictures:")
  22. (set msg_OldWorkbench    ("You need at least Worbench 2.04 to install %s" @app-name))
  23. (set msg_Nor        "Normal")
  24. (set msg_Std        "Standard")
  25. (set msg_Max        "Max")
  26. (set msg_Startup    ("Do you want %s to start up automatically every time you turn on your Amiga?" @app-name))
  27. (set msg_ErrorRam    "Error while copying files to Ram Disk.")
  28. (set msg_Insert        "Please insert Disk %ld in any drive")
  29. (set msg_Installing    "Installing %s...")
  30. (set msg_MoveLingua    "Replacing path in %s...")
  31. (set msg_ConvertNTSC    "Converting background %s to NTSC...")
  32. (set msg_ConvertOverscan "Converting background %s to overscan...")
  33. (set msg_DeleteOldFiles    ("You already have an older version of %s installed on your harddisk.  Do you want to delete old files which are not needed anymore?" @app-name))
  34.  
  35.  
  36. ;------------------------------ Constants ---------------------------------
  37.  
  38. (if (= @app-name "Scala InfoChannel")
  39.     (set IC 1)
  40.     (set IC 0)
  41. )
  42.  
  43. (if (= @app-name "InfoChannel Player")
  44.     (set PL 1)
  45.     (set PL 0)
  46. )
  47.  
  48. (if (= @app-name "Scala Multimedia")
  49.     (set MM 1)
  50.     (set MM 0)
  51. )
  52.  
  53. (if (= @app-name "Scala Multimedia Upgrade")
  54.     (set UPGR 1)
  55.     (set UPGR 0)
  56. )
  57.  
  58. (if (or IC MM)
  59.     (
  60.     (set opt_Scala        %000000001)
  61.     (set opt_Utils        %000000010)
  62.     (set opt_Palettes    %000000100)
  63.     (set opt_Symbols    %000001000)
  64.     (set opt_ARexx        %000010000)
  65.     (set opt_EX        %000100000)
  66.     (set opt_Fonts        %001000000)
  67.     (set opt_Back         %010000000)
  68.     (set opt_Demos        %100000000)
  69.     )
  70. )
  71.  
  72. (if PL
  73.     (
  74.     (set opt_Scala        %000000001)
  75.     (set opt_Symbols    %000000010)
  76.     (set opt_EX        %000000100)
  77.     (set opt_Fonts        %000001000)
  78.     (set opt_Back         %000010000)
  79.     )
  80. )
  81.  
  82. (if UPGR
  83.     (
  84.     (set opt_Scala        %000000001)
  85.     (set opt_Utils        %000000010)
  86.     (set opt_EX        %000000100)
  87.     (set opt_ARexx        %000001000)
  88.     (set opt_Demos        %000010000)
  89.     (set opt_Resize        %000100000)
  90.     )
  91. )
  92.  
  93.  
  94. (if (or IC PL)
  95.     (
  96.     (set lha_Scala        "Disk1:Scala.lha")
  97.     (set num_Scala        1)
  98.     (set lha_ScalaFont    "Disk1:ScalaFont.lha")
  99.     (set num_ScalaFont    1)
  100.     (set lha_Utils        "Disk1:Utilities.lha")
  101.     (set num_Utils        1)
  102.     (set lha_Palettes    "Disk1:Palettes.lha")
  103.     (set num_Palettes    1)
  104.     (set lha_Symbols    "Disk1:Symbols.lha")
  105.     (set num_Symbols    1)
  106.     (set lha_ARexx        "Disk1:ARexx.lha")
  107.     (set num_ARexx        1)
  108.     (set lha_Scripts    "Disk1:Scripts.lha")
  109.     (set num_Scripts    1)
  110.     (set lha_EX        "Disk2:EX.lha")
  111.     (set num_EX        2)
  112.     (set lha_Fonts        "Disk2:Fonts.lha")
  113.     (set num_Fonts        2)
  114.     (set lha_Back1        "Disk2:Backgrounds1.lha")
  115.     (set num_Back1        2)
  116.     (set lha_Back2        "Disk3:Backgrounds2.lha")
  117.     (set num_Back2        3)
  118.     (set lha_Back3        "Disk4:Backgrounds3.lha")
  119.     (set num_Back3        4)
  120.     (set lha_Back4        "Disk5:Backgrounds4.lha")
  121.     (set num_Back4        5)
  122.     (set lha_Demos1        "Disk6:Demos1.lha")
  123.     (set num_Demos1        6)
  124.     (set lha_Demos2        "Disk7:Demos2.lha")
  125.     (set num_Demos2        7)
  126.     (set lha_Demos3        "Disk8:Demos3.lha")
  127.     (set num_Demos3        8)
  128.     (set lha_Demos4        "Disk9:Demos4.lha")
  129.     (set num_Demos4        9)
  130.     (set lha_Demos5        "Disk10:Demos5.lha")
  131.     (set num_Demos5        10)
  132.     (set lha_Demos6        "Disk11:Demos6.lha")
  133.     (set num_Demos6        11)
  134.     (set lha_Demos7        "Disk12:Demos7.lha")
  135.     (set num_Demos7        12)
  136.     (set lha_Demos8        "Disk13:Demos8.lha")
  137.     (set num_Demos8        13)
  138.     (set lha_Demos9        "Disk14:Demos9.lha")
  139.     (set num_Demos9        14)    
  140.     )
  141. )
  142.  
  143. (if MM
  144.     (
  145.     (set lha_Scala        "Disk1:Scala.lha")
  146.     (set num_Scala        1)
  147.     (set lha_ScalaFont    "Disk1:ScalaFont.lha")
  148.     (set num_ScalaFont    1)
  149.     (set lha_Utils        "Disk1:Utilities.lha")
  150.     (set num_Utils        1)
  151.     (set lha_Palettes    "Disk1:Palettes.lha")
  152.     (set num_Palettes    1)
  153.     (set lha_Symbols    "Disk1:Symbols.lha")
  154.     (set num_Symbols    1)
  155.     (set lha_ARexx        "Disk1:ARexx.lha")
  156.     (set num_ARexx        1)
  157.     (set lha_Scripts    "Disk1:Scripts.lha")
  158.     (set num_Scripts    1)
  159.     (set lha_EX        "Disk1:EX.lha")
  160.     (set num_EX        1)
  161.     (set lha_Fonts        "Disk2:Fonts.lha")
  162.     (set num_Fonts        2)
  163.     (set lha_Back1        "Disk2:Backgrounds1.lha")
  164.     (set num_Back1        2)
  165.     (set lha_Back2        "Disk3:Backgrounds2.lha")
  166.     (set num_Back2        3)
  167.     (set lha_Back3        "Disk4:Backgrounds3.lha")
  168.     (set num_Back3        4)
  169.     (set lha_Back4        "Disk5:Backgrounds4.lha")
  170.     (set num_Back4        5)
  171.     (set lha_Demos1        "Disk5:Demos1.lha")
  172.     (set num_Demos1        5)
  173.     (set lha_Demos2        "Disk6:Demos2.lha")
  174.     (set num_Demos2        6)
  175.     (set lha_Demos3        "Disk7:Demos3.lha")
  176.     (set num_Demos3        7)
  177.     (set lha_Demos4        "Disk8:Demos4.lha")
  178.     (set num_Demos4        8)
  179.     )
  180. )
  181.  
  182. (if UPGR
  183.     (
  184.     (set lha_Scala        "Disk1:Scala.lha")
  185.     (set num_Scala        1)
  186.     (set lha_ScalaFont    "Disk1:ScalaFont.lha")
  187.     (set num_ScalaFont    1)
  188.     (set lha_Utils        "Disk1:Utilities.lha")
  189.     (set num_Utils        1)
  190.     (set lha_ARexx        "Disk1:ARexx.lha")
  191.     (set num_ARexx        1)
  192.     (set lha_Scripts    "Disk1:Scripts.lha")
  193.     (set num_Scripts    1)
  194.     (set lha_EX        "Disk1:EX.lha")
  195.     (set num_EX        1)
  196.     (set lha_Demos1        "Disk2:Demos1.lha")
  197.     (set num_Demos1        2)
  198.     (set lha_Demos2        "Disk3:Demos2.lha")
  199.     (set num_Demos2        3)
  200.     )
  201. )
  202.  
  203.  
  204.  
  205. ;-------------------------- Utility procedures ----------------------------
  206.  
  207. (Procedure CheckConfig
  208.     (set OS_Version (/ (getversion) 65536))
  209.     (if (< OS_Version 37)
  210.     (abort msg_OldWorkbench)
  211.     )
  212.     (if (= (database "vblank") 50)
  213.         (   (SET VideoMode "PAL")
  214.             (SET NOR ("640 x 512 (%s)" msg_Nor))
  215.             (SET STD ("704 x 566 (%s)" msg_Std))
  216.             (SET MAX ("736 x 566 (%s)" msg_Max))
  217.     )
  218.         (   (SET VideoMode "NTSC")
  219.             (SET NOR ("640 x 400 (%s)" msg_Nor))
  220.             (SET STD ("704 x 480 (%s)" msg_Std))
  221.             (SET MAX ("736 x 482 (%s)" msg_Max))
  222.     )
  223.     )
  224. )
  225.  
  226.  
  227. (Procedure CopyTools
  228.     (askdisk (dest "Disk1") (prompt (msg_Insert 1)) (help @askdisk-help))
  229.     (copyfiles
  230.     (prompt "")
  231.     (help @copyfiles-help)
  232.     (source "Disk1:Tools")
  233.     (all)
  234.     (dest "RAM:")
  235.     )
  236.     (if (not (and (exists "RAM:LHa") 
  237.           (exists "RAM:MakeOverscan") 
  238.           (exists "RAM:MoveLingua")))
  239.     (abort msg_ErrorRam)
  240.     )
  241. )
  242.  
  243.  
  244. (Procedure InstallFile
  245.     (askdisk (dest ("Disk%ld" DiskNum))
  246.          (prompt (msg_Insert DiskNum)) 
  247.          (help @askdisk-help)
  248.     )
  249.     (working (msg_Installing Installing))
  250.     (run ("RAM:LHa -N x %s \"%s/\"" LhaFile @Dest))
  251. )
  252.  
  253.  
  254. (Procedure InstallFontFiles
  255.     (askdisk (dest ("Disk%ld" DiskNum))
  256.          (prompt (msg_Insert DiskNum)) 
  257.          (help @askdisk-help)
  258.     )
  259.     (working (msg_Installing Installing))
  260.     (run ("RAM:LHa -N x %s \"%s\"" LhaFile "Fonts:"))
  261. )
  262.  
  263.  
  264. (Procedure MoveLingua
  265.     (set i 0)
  266.     (while 
  267.     (set ScriptName 
  268.         (if IC
  269.             (select i
  270.                 "InfoChannelIC400.script"
  271.                 "LaScalatore.script"
  272.                 "ScalaAGA.script"
  273.                 "ScalaAirport.script"
  274.                 "ScalaCableTV.script"
  275.                 "ScalaComms.script"
  276.                 "ScalaFeatures.script"
  277.                 "ScalaFonts.script"
  278.                 "ScalaHotel.script"
  279.                 "ScalaQuiz.script"
  280.                 "ScalaShopping.script"
  281.                 "ScalaTime.script"
  282.                 "ScalaTravel.script"
  283.                 "ScalaVoice.script"
  284.                 "ScalaWipes.script"
  285.                 "ScalaWorld.script"
  286.                 "ScaliniMotor.script"
  287.                 ""
  288.             )
  289.             (select i
  290.                 "LaScalatore.script"
  291.                 "ScalaFeatures.script"
  292.                 "ScalaFonts.script"
  293.                 "ScalaMain.script"
  294.                 "ScalaQuiz.script"
  295.                 "ScalaTime.script"
  296.                 "ScalaVoice.script"
  297.                 "ScalaWipes.script"
  298.                 "ScalaWorld.script"
  299.                 "ScalaProducts.script"
  300.                 ""
  301.             )
  302.         )
  303.         )
  304.     (set ScriptName (tackon (tackon @dest "Scripts") ScriptName))
  305.         (if (exists ScriptName)
  306.         (
  307.             (working (msg_MoveLingua ScriptName))
  308.             (run ("RAM:MoveLingua \"%s\" Work:Scala \"%s\" \"%s\"" ScriptName @dest (tackon @dest "Scripts")))
  309.         )
  310.     )
  311.     (set i (+ i 1))
  312.     )
  313. )
  314.  
  315. (Procedure MakeOverscan
  316.     (set i 0)
  317.     (while 
  318.     (set PictureName 
  319.         (select i
  320.         "Fabrics001"    "Fabrics002"    "Fabrics003"
  321.         "Fantasy001"    "Grass001"    "NaiveBook"
  322.         "NaiveClock"    "NaiveCoffee"    "NaiveDisk"
  323.         "NaivePencil"    "NaivePhone"    "NaivePiano"
  324.         "NaivePlate"    "Number001"    "Number002"
  325.         "Number003"    "Number004"    "Number005"
  326.         "Number006"    "Number007"    "Number008"
  327.         "Number009"    "Painting001"    "Painting002"
  328.         "Painting003"    "Painting004"    "Paper001"
  329.         "Paper002"    "Paper003"    "Paper004"
  330.         "Paper005"    "Sky001"    "Stones001"
  331.         "Stones002"    "Stones003"    "Stones004"
  332.         "Stones005"    "Stones006"    "Stones007"
  333.         "Stones008"    "Stones009"    "Stones010"
  334.         "Stones011"    "Tech001"    "Tech002"
  335.         "Tech003"    "Tech004"    "Tech005"
  336.         "Tech006"    "Tech007"    "Texture001"
  337.         "Texture002"     "Texture003"    "Texture004"
  338.         "Texture005"     "Texture006"     "Texture007" 
  339.         "Texture008"    "Texture009"     "Texture010"     
  340.         "Texture011"    "Texture012"     "Texture013" 
  341.         "Theme001"     "Theme002"     "Theme003" 
  342.         "Theme004"    "Water001"     "Window001" 
  343.         ""
  344.         )
  345.         )
  346.         (if (and (= VideoMode "NTSC") (= BackSize 0))
  347.         (working (msg_ConvertNTSC PictureName))
  348.         (working (msg_ConvertOverscan PictureName))
  349.     )
  350.     (set PictureName (tackon (tackon @dest "Backgrounds") PictureName))
  351.     (run ("RAM:MakeOverscan \"%s\" \"%s\" %s %s" PictureName PictureName
  352.         VideoMode (select BackSize "NOR" "STD" "MAX")))
  353.     (set i (+ i 1))
  354.     )
  355.     (if (= VideoMode "NTSC")
  356.     (
  357.             (set PictureName (tackon (tackon @dest "Backgrounds") "World001"))
  358.             (run ("RAM:MakeOverscan \"%s\" \"%s\" NTSC NOR" PictureName PictureName))
  359.     )
  360.     )
  361. )
  362.  
  363. ;-------------------------- Cleanup procedures ----------------------------
  364.  
  365. (Procedure DeleteTools
  366.     (delete "RAM:MakeOverscan" "RAM:MoveLingua" "RAM:Lha")
  367. )
  368.  
  369. (onerror (DeleteTools))
  370.  
  371.  
  372. (Procedure DeleteOldFiles
  373.     (if (or IC PL)
  374.     (
  375.         (if (exists "libs:infochannel.library")
  376.         (if (askbool (prompt msg_DeleteOldFiles) (help @askbool-help))
  377.             (
  378.                 (delete "libs:infochannel.library")
  379.                 (delete "devs:infochannel.device")
  380.                 (delete "s:infochannel.config")
  381.                 (delete "s:infochannel.layout")
  382.                 (delete "s:infochannel.layout.info")
  383.                 (delete "s:startup-script")
  384.                 (delete "fonts:Info.font")
  385.                 (delete "fonts:Info/11")
  386.                 (delete "fonts:Info/8")
  387.                 (delete "fonts:Info")
  388.                 (delete (tackon @dest "InfoPrint"))
  389.                 (delete (tackon @dest "InfoPrint.info"))
  390.                 (delete (tackon @dest "InfoNet"))
  391.                 (delete (tackon @dest "InfoNet.info"))
  392.             )
  393.         )
  394.         )
  395.     )
  396.     (
  397.         (if (exists "libs:scalamm.library")
  398.         (if (askbool (prompt msg_DeleteOldFiles) (help @askbool-help))
  399.             (
  400.                 (delete "libs:scalamm.library")
  401.                 (delete "devs:scalamm.device")
  402.                 (delete "s:scalamm.config")
  403.                 (delete "s:scalamm.layout")
  404.                 (delete "s:scalamm.layout.info")
  405.                 (delete "s:startup-script")
  406.                 (set utils (tackon @dest "Utilities"))
  407.                 (delete (tackon utils "ScalaMMPrint"))
  408.                 (delete (tackon utils "ScalaMMPrint.info"))
  409.             )
  410.         )
  411.         )
  412.     )
  413.     )
  414. )
  415.  
  416. ;-------------------------- Menu procedures -------------------------------
  417.  
  418. (Procedure InstallMenu
  419.     (until (<> Selection 0)
  420.         (
  421.             (if (or IC MM)
  422.             (set Selection
  423.                 (askoptions
  424.                     (prompt msg_ChooseWhat)
  425.                     (help @askoptions-help)
  426.                         (choices @app-name
  427.                              msg_Utils
  428.                              msg_Palettes
  429.                              msg_Symbols
  430.                              msg_ARexx
  431.                              msg_EX
  432.                              msg_Fonts
  433.                              msg_Back
  434.                              msg_Demos
  435.                         )
  436.             )
  437.         )
  438.         )
  439.         (if PL
  440.             (set Selection
  441.                 (askoptions
  442.                     (prompt msg_ChooseWhat)
  443.                     (help @askoptions-help)
  444.                 (choices @app-name
  445.                          msg_Symbols
  446.                          msg_EX
  447.                          msg_Fonts
  448.                          msg_Back
  449.                         )
  450.             )
  451.         )
  452.             )
  453.         (if UPGR
  454.             (if (exists "libs:scalamm.library")
  455.             (set Selection
  456.                     (askoptions
  457.                         (prompt msg_ChooseWhat)
  458.                         (help @askoptions-help)
  459.                             (choices @app-name
  460.                                  msg_Utils
  461.                                  msg_EX
  462.                             )
  463.             )
  464.                     )
  465.             (set Selection
  466.                     (askoptions
  467.                         (prompt msg_ChooseWhat)
  468.                         (help @askoptions-help)
  469.                         (default %11111)
  470.                             (choices @app-name
  471.                                  msg_Utils
  472.                                  msg_EX
  473.                                  msg_ARexx
  474.                                  msg_Demos
  475.                                  msg_Resize
  476.                             )
  477.             )
  478.                     )
  479.             )
  480.             )
  481.  
  482.     )
  483.         (if (= Selection 0)    
  484.             (message msg_NoSelect)
  485.         )
  486.     )
  487. )
  488.  
  489.  
  490. (Procedure BackMenu
  491.     (set BackSize
  492.         (askchoice
  493.             (prompt (msg_Overscan1 STD MAX) msg_ChooseSize)
  494.             (help @askchoice-help)
  495.             (choices NOR STD MAX)
  496.     )
  497.     )
  498. )
  499.  
  500.  
  501. (Procedure DestMenu
  502.     (set @dest "")
  503.     (while (= @dest (pathonly @dest))
  504.         (set @dest
  505.             (askdir
  506.                 (prompt msg_ChooseDest)
  507.                 (help @askdir-help)
  508.                 (newpath)
  509.                 (default @default-dest)
  510.         )
  511.         )
  512.         (if (= @dest (pathonly @dest))
  513.         (message msg_NoDrawer)
  514.     )
  515.     )
  516.     (if (not (exists @dest))
  517.         (
  518.         (makedir @dest (infos))
  519.             (tooltype (dest @dest) (noposition))
  520.     )
  521.     )
  522.     (set @default-dest @dest)
  523. )
  524.  
  525.  
  526.  
  527. ;------------------------- Installation procedures ------------------------
  528. (Procedure InstallScala
  529.     (set System (tackon @dest "System"))
  530.     (makedir System (infos))
  531.     (tooltype (dest System) (noposition))
  532.  
  533.     (set Installing @app-name)
  534.     (set LhaFile lha_Scala)
  535.     (set DiskNum num_Scala)
  536.     (InstallFile)
  537.  
  538.     (set Installing msg_ScalaFont)
  539.     (set LhaFile lha_ScalaFont)
  540.     (set DiskNum num_ScalaFont)
  541.     (InstallFontFiles)
  542.  
  543.     (if PL
  544.     (
  545.         (set Scripts (tackon @dest "Scripts"))
  546.         (makedir Scripts (infos))
  547.         (tooltype (dest Scripts) (noposition))
  548.         (copyfiles (source "Disk1:InfoChannel.script")
  549.         (dest (tackon @dest "Scripts"))
  550.         )
  551.         (textfile (dest (tackon @dest "System/InfoChannel.startup"))
  552.             (append (tackon @dest "Scripts/InfoChannel.script"))
  553.         )
  554.     )
  555.     (
  556.         (set i 0)
  557.         (while 
  558.         (set DrawerName
  559.             (select i
  560.                 "Scripts"
  561.                 "Backgrounds"
  562.                 "Animations"
  563.                 "Music"
  564.                 "Sounds"
  565.                 "Symbols"
  566.                 "Palettes"
  567.                 "Text"
  568.                 "Layouts"
  569.                 ""
  570.             )
  571.             )
  572.         (set DrawerName (tackon @dest DrawerName))
  573.             (makedir DrawerName (infos))
  574.             (tooltype (dest DrawerName) (noposition))
  575.         (set i (+ i 1))
  576.         )
  577.     )
  578.     )
  579.     (if (or IC PL)
  580.         (
  581.         (startup 
  582.             (prompt msg_Startup)
  583.             (help @startup-help)
  584.             "Scala"
  585.             (if IC
  586.             (command (tackon @dest "InfoChannel"))
  587.             (command (tackon @dest "InfoPlayer"))
  588.         )
  589.         )
  590.     )
  591.     )
  592. )
  593.  
  594. (Procedure InstallUtils
  595.     (set Utilities (tackon @dest "Utilities"))
  596.     (makedir Utilities (infos))
  597.     (tooltype (dest Utilities) (noposition))
  598.  
  599.     (set Installing msg_Utils)
  600.     (set LhaFile lha_Utils)
  601.     (set DiskNum num_Utils)
  602.     (InstallFile)    
  603. )
  604.  
  605. (Procedure InstallPalettes
  606.     (set Palettes (tackon @dest "Palettes"))
  607.     (makedir Palettes (infos))
  608.     (tooltype (dest Palettes) (noposition))
  609.  
  610.     (set Installing msg_Palettes)
  611.     (set LhaFile lha_Palettes)
  612.     (set DiskNum 1)
  613.     (InstallFile)
  614. )
  615.  
  616. (Procedure InstallSymbols
  617.     (set Symbols (tackon @dest "Symbols"))
  618.     (makedir Symbols (infos))
  619.     (tooltype (dest Symbols) (noposition))
  620.  
  621.     (set Installing msg_Symbols)
  622.     (set LhaFile lha_Symbols)
  623.     (set DiskNum num_Symbols)
  624.     (InstallFile)
  625. )
  626.  
  627. (Procedure InstallArexx
  628.     (set ARexx (tackon @dest "ARexx"))
  629.     (makedir ARexx (infos))
  630.     (tooltype (dest ARexx) (noposition))
  631.  
  632.     (set Installing msg_ARexx)
  633.     (set LhaFile lha_ARexx)
  634.     (set DiskNum num_ARexx)
  635.     (InstallFile)
  636. )
  637.  
  638. (Procedure InstallScripts
  639.     (set Scripts (tackon @dest "Scripts"))
  640.     (makedir Scripts (infos))
  641.     (tooltype (dest Scripts) (noposition))
  642.  
  643.     (set Installing msg_Demos)
  644.     (set LhaFile lha_Scripts)
  645.     (set DiskNum num_Scripts)
  646.     (InstallFile)
  647.  
  648.     (MoveLingua)
  649. )
  650.  
  651. (Procedure InstallEX
  652.     (set EX (tackon @dest "EX"))
  653.     (makedir EX (infos))
  654.     (tooltype (dest EX) (noposition))
  655.     (set StartupDrawer (tackon @dest "Startup"))
  656.     (makedir StartupDrawer (infos))
  657.     (tooltype (dest StartupDrawer) (noposition))
  658.  
  659.     (set Installing msg_EX)
  660.     (set LhaFile lha_EX)
  661.     (set DiskNum num_EX)
  662.     (InstallFile)
  663. )
  664.  
  665. (Procedure InstallFonts
  666.     (set Installing msg_Fonts)
  667.     (set LhaFile lha_Fonts)
  668.     (set DiskNum num_Fonts)
  669.     (InstallFontFiles)
  670. )
  671.  
  672. (Procedure InstallBack
  673.     (set Back (tackon @dest "Backgrounds"))
  674.     (makedir Back (infos))
  675.     (tooltype (dest Back) (noposition))
  676.     (set Installing msg_Back)
  677.  
  678.     (set LhaFile lha_Back1)
  679.     (set DiskNum num_Back1)
  680.     (InstallFile)
  681.  
  682.     (set LhaFile lha_Back2)
  683.     (set DiskNum num_Back2)
  684.     (InstallFile)
  685.  
  686.     (set LhaFile lha_Back3)
  687.     (set DiskNum num_Back3)
  688.     (InstallFile)
  689.  
  690.     (set LhaFile lha_Back4)
  691.     (set DiskNum num_Back4)
  692.     (InstallFile)
  693.  
  694.     (if (or (= VideoMode "NTSC") BackSize)
  695.         (MakeOverscan)
  696.     )
  697. )
  698.  
  699. (Procedure InstallDemos
  700.     (set Anim (tackon @dest "Animations"))
  701.     (makedir Anim (infos))
  702.     (tooltype (dest Anim) (noposition))
  703.  
  704.     (set Sounds (tackon @dest "Sounds"))
  705.     (makedir Sounds (infos))
  706.     (tooltype (dest Sounds) (noposition))
  707.  
  708.     (set Music (tackon @dest "Music"))
  709.     (makedir Music (infos))
  710.     (tooltype (dest Music) (noposition))
  711.  
  712.     (set Text (tackon @dest "Text"))
  713.     (makedir Text (infos))
  714.     (tooltype (dest Text) (noposition))
  715.  
  716.     (set Back (tackon @dest "Backgrounds"))
  717.     (makedir Back (infos))
  718.     (tooltype (dest Back) (noposition))
  719.  
  720.     (set Installing msg_Demos)
  721.  
  722.     (set LhaFile lha_Demos1)
  723.     (set DiskNum num_Demos1)
  724.     (InstallFile)
  725.  
  726.     (set LhaFile lha_Demos2)
  727.     (set DiskNum num_Demos2)
  728.     (InstallFile)
  729.  
  730.     (if (not UPGR)
  731.         (
  732.         (set LhaFile lha_Demos3)
  733.         (set DiskNum num_Demos3)
  734.         (InstallFile)
  735.  
  736.         (set LhaFile lha_Demos4)
  737.         (set DiskNum num_Demos4)
  738.         (InstallFile)
  739.     )
  740.     )
  741.  
  742.     (if IC
  743.         (
  744.         (set LhaFile lha_Demos5)
  745.         (set DiskNum num_Demos5)
  746.         (InstallFile)
  747.     
  748.         (set LhaFile lha_Demos6)
  749.         (set DiskNum num_Demos6)
  750.         (InstallFile)
  751.     
  752.         (set LhaFile lha_Demos7)
  753.         (set DiskNum num_Demos7)
  754.         (InstallFile)
  755.     
  756.         (set LhaFile lha_Demos8)
  757.         (set DiskNum num_Demos8)
  758.         (InstallFile)
  759.     
  760.         (set LhaFile lha_Demos9)
  761.         (set DiskNum num_Demos9)
  762.         (InstallFile)
  763.     )
  764.     )
  765. )
  766.  
  767.  
  768. (Procedure ResizeBack
  769.     (set BackSize
  770.         (+ 1 (askchoice
  771.                 (prompt msg_Overscan2 msg_ChooseSize)
  772.                 (help @askchoice-help)
  773.                 (choices STD MAX)
  774.          )
  775.     )
  776.     )
  777.     (MakeOverscan)
  778. )
  779.  
  780. ;------------------------------- Main program -----------------------------
  781.  
  782. (CheckConfig)
  783. (InstallMenu)
  784. (if (<> Selection opt_Fonts)        (DestMenu))
  785. (if (bitand Selection opt_Back)         (BackMenu))
  786. (CopyTools)
  787.  
  788. ; Disk 1
  789. (if (bitand Selection opt_Scala)    (InstallScala))
  790. (if (bitand Selection opt_Utils)    (InstallUtils))
  791. (if (bitand Selection opt_Palettes)    (InstallPalettes))
  792. (if (bitand Selection opt_Symbols)    (InstallSymbols))
  793. (if (bitand Selection opt_ARexx)    (InstallARexx))
  794. (if (bitand Selection opt_Demos)    (InstallScripts))
  795.  
  796. ; Disk 2
  797. (if (bitand Selection opt_EX)        (InstallEX))
  798. (if (bitand Selection opt_Fonts)    (InstallFonts))
  799.  
  800. ; Disk 2-5
  801. (if (bitand Selection opt_Back)        (InstallBack))
  802.  
  803. ; Disk 6-9
  804. (if (bitand Selection opt_Demos)    (InstallDemos))
  805.  
  806. (if (bitand Selection opt_Resize)    (ResizeBack))
  807.  
  808.  
  809. (DeleteTools)
  810.  
  811. (if (bitand Selection opt_Scala)    (DeleteOldFiles))
  812.  
  813. (exit)
  814. (welcome)
  815.